package com.mvc.entity;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 仓单质押贷款
 * 
 * @author Hervey Hall
 *
 */
@Entity
@Table(name = "loan")
public class Loan implements Serializable {

	/**
	 * Serialized by Hervey Hall.
	 */
	private static final long serialVersionUID = 4578406765937074611L;

	/**
	 * 行号
	 */
	@Id
	@Basic(optional = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID", nullable = false)
	private Long ID;

	public Long getId() {
		return ID;
	}

	public Loan setId(Long id) {
		this.ID = id;
		return this;
	}

	public String getName() {
		return name;
	}

	public Loan setName(String name) {
		this.name = name;
		return this;
	}

	public String getMobile() {
		return mobile;
	}

	public Loan setMobile(String mobile) {
		this.mobile = mobile;
		return this;
	}

	public String getProvince() {
		return province;
	}

	public Loan setProvince(String province) {
		this.province = province;
		return this;
	}

	public String getCity() {
		return city;
	}

	public Loan setCity(String city) {
		this.city = city;
		return this;
	}

	public String getAddress() {
		return address;
	}

	public Loan setAddress(String address) {
		this.address = address;
		return this;
	}

	public Double getLoanAmount() {
		return loanAmount;
	}

	public Loan setLoanAmount(Double loanAmount) {
		this.loanAmount = loanAmount;
		return this;
	}

	public String getLoanUsage() {
		return loanUsage;
	}

	public Loan setLoanUsage(String loanUsage) {
		this.loanUsage = loanUsage;
		return this;
	}

	public String getGuaranteeMode() {
		return guaranteeMode;
	}

	public Loan setGuaranteeMode(String guaranteeMode) {
		this.guaranteeMode = guaranteeMode;
		return this;
	}

	public String getPawn() {
		return pawn;
	}

	public Loan setPawn(String pawn) {
		this.pawn = pawn;
		return this;
	}

	public String getSpecification() {
		return specification;
	}

	public Loan setSpecification(String specification) {
		this.specification = specification;
		return this;
	}

	public Double getNumber() {
		return number;
	}

	public Loan setNumber(Double number) {
		this.number = number;
		return this;
	}

	public String getPlace() {
		return place;
	}

	public Loan setPlace(String place) {
		this.place = place;
		return this;
	}

	public Double getAsserts() {
		return asserts;
	}

	public Loan setAsserts(Double asserts) {
		this.asserts = asserts;
		return this;
	}

	public Double getIncome() {
		return income;
	}

	public Loan setIncome(Double income) {
		this.income = income;
		return this;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	/**
	 * 姓名/企业名称
	 */
	@Column(name = "name")
	private String name;

	/**
	 * 手机号码
	 */
	@Column(name = "mobile")
	private String mobile;

	/**
	 * 常驻地址/经营地址<br>
	 * 省份
	 */
	@Column(name = "province")
	private String province;

	/**
	 * 常驻地址/经营地址<br>
	 * 市州
	 */
	@Column(name = "city")
	private String city;

	/**
	 * 常驻地址/经营地址<br>
	 * 详细地址
	 */
	@Column(name = "address")
	private String address;

	/**
	 * 申请额度
	 */
	@Column(name = "loan_amount")
	private Double loanAmount;

	/**
	 * 贷款用途
	 */
	@Column(name = "loan_usage")
	private String loanUsage;

	/**
	 * 担保方式
	 */
	@Column(name = "guarantee_mode")
	private String guaranteeMode;

	/**
	 * 质押物
	 */
	@Column(name = "pawn")
	private String pawn;

	/**
	 * 规格
	 */
	@Column(name = "specification")
	private String specification;

	/**
	 * 数量
	 */
	@Column(name = "number")
	private Double number;

	/**
	 * 产地
	 */
	@Column(name = "production_place")
	private String place;

	/**
	 * 总资产
	 */
	@Column(name = "total_assets")
	private Double asserts;

	/**
	 * 年收入
	 */
	@Column(name = "annual_income")
	private Double income;
}
